ostbuild: Sort keys in JSON snapshot
authorColin Walters <walters@verbum.org>
Tue, 28 Feb 2012 00:28:13 +0000 (19:28 -0500)
committerColin Walters <walters@verbum.org>
Tue, 13 Mar 2012 14:39:25 +0000 (10:39 -0400)
src/ostbuild/pyostbuild/builtin_resolve.py

index e6f680cffc4849c9185384a42b8b33daeb08d983..224f1a274ad9a45ea588ce4ea8d23baf00543222 100755 (executable)
@@ -223,9 +223,9 @@ class OstbuildResolve(builtins.Builtin):
                                patch)
             dest = os.path.join(patchdir, patch)
             shutil.copy(src, dest)
-        
+
         f = open(out_snapshot, 'w')
-        json.dump(self.manifest, f, indent=4)
+        json.dump(self.manifest, f, indent=4, sort_keys=True)
         f.close()
         print "Created: %s, %d patches" % (out_snapshot, len(all_patches.keys()))